﻿<%@ Page Language="C#"   AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="CanDoo.Oil.WebApp.cusCustomer.Edit" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>客户编辑</title>
    <link href="/res/css/common.css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="PanelMain" runat="server" />

        <f:Panel ID="PanelMain" ShowBorder="false" ShowHeader="false"  AutoScroll="true" runat="server" Layout="Anchor" >
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server">
                    <Items>
                        <f:Button ID="btnClose" EnablePostBack="false" runat="server" Hidden="true"
                            Text="关闭">
                        </f:Button>
                        <f:Button ID="btnSave" ValidateForms="FormEdit" Hidden="true"
                            OnClick="btnSave_Click" runat="server" Text="保存">
                        </f:Button>
                        <f:Button ID="btnToEdit" Hidden="true"
                            OnClick="btnToEdit_Click" runat="server" Text="编辑信息">
                        </f:Button>
                        <f:HiddenField ID="ed_EntityId" runat="server"></f:HiddenField>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Items>
                <f:Form BodyPadding="10px" ShowBorder="false" EnableCollapse="true"
                    ID="FormEdit" runat="server" ShowHeader="false" LabelAlign="Right">
                    <Items>
                        <f:Panel ID="Panel0" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:TextBox ID="ed_CardNo" runat="server" Required="true" ShowRedStar="True" Label="卡号" MaxLength="50" ColumnWidth="40%">
                                </f:TextBox>
                                <f:TextBox ID="ed_Name" runat="server" Required="true" ShowRedStar="True" Label="姓名" ColumnWidth="40%">
                                </f:TextBox>
                                <f:RadioButtonList ID="ed_Sex" runat="server" Required="true" ShowRedStar="True" Label="性别" ColumnWidth="20%">
                                </f:RadioButtonList>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel2" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:TextBox ID="ed_Password" runat="server" Required="true" ShowRedStar="True" Label="登录密码" MaxLength="50" ColumnWidth="40%" TextMode="Password">
                                </f:TextBox>
                                <f:TextBox ID="ed_RePassword" runat="server" Required="true" ShowRedStar="True" Label="确认密码" MaxLength="50" ColumnWidth="40%" CompareControl="ed_Password" CompareType="String" CompareOperator="Equal"  TextMode="Password">
                                </f:TextBox>
                                <f:Label runat="server" ID="laPassword" Label="默认密码" ColumnWidth="20%" Text="888888"></f:Label>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel4" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:TextBox ID="ed_IDCard" runat="server" Label="身份证号" MaxLength="50" ColumnWidth="70%">
                                </f:TextBox>
                                <f:TextBox ID="ed_MobilePhone" runat="server" Label="手机号" MaxLength="50" ColumnWidth="30%">
                                </f:TextBox>
                            </Items>
                        </f:Panel>
<%--                        <f:Panel ID="Panel6" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:TextBox ID="ed_ImageUrl" runat="server" Label="客户照片" MaxLength="200">
                                </f:TextBox>
                            </Items>
                        </f:Panel>--%>
                        <f:Panel ID="Panel7" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:TextBox ID="ed_CardBank" runat="server" Label="开户行" MaxLength="50" ColumnWidth="70%">
                                </f:TextBox>
                                <f:TextBox ID="ed_CardName" runat="server" Label="户名" MaxLength="50"  ColumnWidth="30%">
                                </f:TextBox>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel9" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:Label runat="server" ID="lb_Address" Label="客户地址" Width="100px"></f:Label>
                                <f:DropDownList ID="ed_Province" runat="server" Label="省" ColumnWidth="25%" ShowLabel="false" AutoPostBack="true" OnSelectedIndexChanged="ed_Province_SelectedIndexChanged" CssClass="marginr">
                                </f:DropDownList>
                                <f:DropDownList ID="ed_City" runat="server" Label="市"  ColumnWidth="25%" ShowLabel="false" AutoPostBack="true" OnSelectedIndexChanged="ed_City_SelectedIndexChanged" CssClass="marginr">
                                </f:DropDownList>
                                <f:DropDownList ID="ed_Area" runat="server" Label="区"  ColumnWidth="25%" ShowLabel="false" AutoPostBack="true" OnSelectedIndexChanged="ed_Area_SelectedIndexChanged" CssClass="marginr">
                                </f:DropDownList>
                                <f:DropDownList ID="ed_Street" runat="server" Label="街道"  ColumnWidth="25%" ShowLabel="false">
                                </f:DropDownList>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel10" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:TextBox ID="ed_Address" runat="server" Label="详细地址" MaxLength="200"  ColumnWidth="100%">
                                </f:TextBox>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel15" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:DropDownList ID="ed_CustomerLevel" runat="server" Label="客户等级">
                                </f:DropDownList>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel16" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:DropDownList ID="ed_CardType" runat="server" Label="卡类别" ShowRedStar="true" CompareOperator="NotEqual" CompareType="String" CompareValue="0">
                                    <f:ListItem Text="请选择" Value="0" />
                                    <f:ListItem Text="储值卡" Value="1" />
                                    <f:ListItem Text="储油卡" Value="2" />
                                    <f:ListItem Text="加油机管理卡" Value="3" />
                                    <f:ListItem Text="服务中心管理卡" Value="4" />
                                </f:DropDownList>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel17" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:DropDownList ID="ed_LimitProduct" runat="server" Label="购买限制">
                                </f:DropDownList>
                            </Items>
                        </f:Panel>
<%--                        <f:Panel ID="Panel18" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:NumberBox ID="ed_Balance" runat="server" Required="true" ShowRedStar="True" Label="账户余额">
                                </f:NumberBox>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel19" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:NumberBox ID="ed_TotalAmount" runat="server" Required="true" ShowRedStar="True" Label="总充值金额">
                                </f:NumberBox>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel20" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:NumberBox ID="ed_OnLinePayMoney" runat="server" Required="true" ShowRedStar="True" Label="在线支付金额">
                                </f:NumberBox>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel21" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:NumberBox ID="ed_CostedMoney" runat="server" Required="true" ShowRedStar="True" Label="总消费金额">
                                </f:NumberBox>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel22" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:NumberBox ID="ed_CashBackAmount" runat="server" Required="true" ShowRedStar="True" Label="返现金额">
                                </f:NumberBox>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel23" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:NumberBox ID="ed_Integral" runat="server" Required="true" ShowRedStar="True" Label="积分">
                                </f:NumberBox>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel29" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:RadioButtonList ID="ed_IsOnline" runat="server" Required="true" ShowRedStar="True" Label="是否在线">
                                </f:RadioButtonList>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel24" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:RadioButtonList ID="ed_IsLocked" runat="server" Required="true" ShowRedStar="True" Label="是否锁定">
                                </f:RadioButtonList>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel31" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:DatePicker ID="ed_StateUpdateTime" runat="server" Label="状态更新时间">
                                </f:DatePicker>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel32" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:RadioButtonList ID="ed_Status" runat="server" Required="true" ShowRedStar="True" Label="账号状态(激活)">
                                </f:RadioButtonList>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel34" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:DatePicker ID="ed_ActivateTime" runat="server" Label="激活时间">
                                </f:DatePicker>
                            </Items>
                        </f:Panel>--%>
                        <f:Panel ID="Panel35" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:TextArea ID="ed_Introduction" runat="server" Label="门店简介"  Height="150px" MaxLength="500">
                                </f:TextArea>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel36" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:TextArea ID="ed_Remark" runat="server" Label="备注"  Height="150px" MaxLength="500">
                                </f:TextArea>
                            </Items>
                        </f:Panel>
                    </Items>
                </f:Form>
            </Items>
        </f:Panel>
    </form>
</body>
</html>
